#include<iostream>
using namespace std;
int main()
{
	int max = 0;
	int arr[5] = { 300,350,200,400,250 };
	for (int i = 0; i < 4; i++)
	{
		if (arr[i] < arr[i+1])
		{
			max = arr[i+1];
		}
		else
		{
			max = arr[i];
		}
	}

	cout << max << endl;



	system("pause");
	return 0;
}